package com.lsh.payment.api.model.payment;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * Project Name: lsh-payment
 *
 * @author peter
 * @date 16/11/8
 * 北京链商电子商务有限公司
 * Package
 * desc:
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@NoArgsConstructor
public class PaymentTogetherRequest extends PaymentRequest {
    /**
     * 运单号
     */
    @NotBlank
    private String will_code;
    /**
     * 集合支付聚合订单号
     */
    @NotBlank
    private String p_order_code;
    /**
     * 聚合订单详情
     */
    @Size(min = 1,message="together_trades 的个数至少1个")
    @Valid
    @NotNull
    private List<String> together_trades;
}
